<%--
    Document   : studentForm
    Author     : Jalbs
--%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>


<logic:present name="studentForm">
    <form id="modifyStudentForm">
        <table>
         <tr>
            <td align="right">Clave:</td>
            <td>            
            <logic:equal name="studentForm" property="action" value="m">
                <html:text property="studentKey" styleId="studentKey" name="studentForm" disabled="true"/>
            </logic:equal>
            <logic:equal name="studentForm" property="action" value="i">
                <html:text property="studentKey" styleId="studentKey" name="studentForm" disabled="true"/>
            </logic:equal>
            <logic:equal name="studentForm" property="action" value="">
                <html:text property="studentKey" styleId="studentKey" name="studentForm" />
            </logic:equal>
            </td>
        </tr>
        <logic:equal name="studentForm" property="action" value="i">
            <tr>
                <td align="right">Nombre:</td>
                <td><html:text property="name" styleId="name" name="studentForm" disabled="true"/> </td>
            
                <td align="right">Apellido Paterno:</td>
                <td><html:text property="firstLastName" styleId="firstLastName" name="studentForm" disabled="true"/> </td>
            </tr>
            <tr>
                <td align="right">Apellido Materno:</td>
                <td><html:text property="secondLastName" styleId="secondLastName" name="studentForm" disabled="true"/> </td>
            
                <td align="right">CURP:</td>
                <td><html:text property="CURP" styleId="CURP" name="studentForm" disabled="true"/> </td>
            </tr>
            <tr>
                <td align="right">Sexo:</td>
                <td><html:text property="sex" styleId="sex" name="studentForm" disabled="true"/> </td>
            
                <td align="right">Direccion:</td>
                <td><html:textarea property="address" styleId="address" name="studentForm" disabled="true"/> </td>
            </tr>
            <tr>
                <td align="right">Estado Civil:</td>
                <td><html:text property="martialStatus" styleId="martialStatus" name="studentForm" disabled="true"/> </td>
            
                <td align="right">Fecha de Nac:</td>
                <td><html:text property="birthday" styleId="birthday" name="studentForm" disabled="true"/> </td>
            </tr>
            <tr>
                <td align="right">Tipo de sangre:</td>
                <td><html:text property="bloodType" styleId="bloodType" name="studentForm" disabled="true"/></td>
            
                <td align="right">Enfermedades:</td>
                <td><html:textarea property="illness" styleId="illness" name="studentForm" disabled="true"/> </td>
            </tr>
            <tr>
                <td align="right">Telefono:</td>
                <td><html:text property="phone" styleId="phone" name="studentForm" disabled="true"/> <br></td>
            
                <td align="right">Celular:</td>
                <td><html:text property="cel" styleId="cel" name="studentForm" disabled="true"/> </td>
            </tr>
            <tr>
                <td align="right">Correo Elec:</td>
                <td><html:text property="email" styleId="email" name="studentForm" disabled="true"/> </td>
            
                <td align="right">Nacionalidad:</td>
                <td><html:text property="nationality" styleId="nationality" name="studentForm" disabled="true"/> </td>
            </tr>
            <tr>
                <td align="right">DICT_REV:</td>
                <td><html:text property="DICT_REV" styleId="DICT_REV" name="studentForm" disabled="true"/> </td>

                <td align="right">Certificado de Nac:</td>
                <td><html:text property="birthCert" styleId="birthCert" name="studentForm" disabled="true"/> </td>
            </tr>
            <tr>
                <td align="right">Cert. de estudios:</td>
                <td><html:text property="cert" styleId="cert" name="studentForm"  disabled="true"/>
                </td>
                <td align="right">Estado:</td>
                <td><html:text property="state" styleId="state" name="studentForm" disabled="true"/></td>
            </tr>
        </logic:equal>
        <logic:notEqual name="studentForm" property="action" value="i" >
            <tr>
                <td align="right">Nombre:</td>
                <td><html:text property="name" styleId="name" name="studentForm"/> </td>
            
                <td align="right">Apellido Paterno:</td>
                <td><html:text property="firstLastName" styleId="firstLastName" name="studentForm"/> </td>
            </tr>
            <tr>
                <td align="right">Apellido Materno:</td>
                <td><html:text property="secondLastName" styleId="secondLastName" name="studentForm"/> </td>
            
                <td align="right">CURP:</td>
                <td><html:text property="CURP" styleId="CURP" name="studentForm"/> </td>
            </tr>
            <tr>
                <td align="right">Sexo:</td>
                <td><html:select property="sex" styleId="sex" name="studentForm">
                        <html:option value="M">Masculino</html:option>
                        <html:option value="F">Femenino</html:option>
                        </html:select></td>
            
                <td align="right">Direccion:</td>
                <td><html:textarea property="address" styleId="address" name="studentForm"/> </td>
            </tr>
            <tr>
                <td align="right">Estado Civil:</td>
                <td><html:select property="martialStatus" styleId="martialStatus" name="studentForm">                        
                        <html:option value="Soltero">Soltero(a)</html:option>
                        <html:option value="Casado">Casado(a)</html:option>
                        </html:select></td>
            
                <td align="right">Fecha de Nac:</td>
                <td><html:text property="birthday" styleId="birthday" name="studentForm"/> </td>
            </tr>
            <tr>
                <td align="right">Tipo de sangre:</td>
                <td><html:select property="bloodType" styleId="bloodType" name="studentForm">
                        <html:option value="A+">A+</html:option>
                        <html:option value="A-">A-</html:option>
                        <html:option value="B+">B+</html:option>
                        <html:option value="B-">B-</html:option>
                        <html:option value="O+">O+</html:option>
                        <html:option value="O-">O-</html:option>
                        </html:select></td>
            
                <td align="right">Enfermedades:</td>
                <td><html:textarea property="illness" styleId="illness" name="studentForm"/> </td>
            </tr>
            <tr>
                <td align="right">Telefono:</td>
                <td><html:text property="phone" styleId="phone" name="studentForm"/> <br></td>
            
                <td align="right">Celular:</td>
                <td><html:text property="cel" styleId="cel" name="studentForm"/> </td>
            </tr>
            <tr>
                <td align="right">Correo Elec:</td>
                <td><html:text property="email" styleId="email" name="studentForm"/> </td>
            
                <td align="right">Nacionalidad:</td>
                <td><html:text property="nationality" styleId="nationality" name="studentForm"/> </td>
            </tr>
            <tr>
                <td align="right">DICT_REV:</td>
                <td><html:select property="DICT_REV" styleId="DICT_REV" name="studentForm">
                        <html:option value="Y">Si</html:option>
                        <html:option value="N">No</html:option>
                        </html:select></td>

                <td align="right">Certificado de Nac:</td>
                <td><html:select property="birthCert" styleId="birthCert" name="studentForm">
                        <html:option value="Y">Si</html:option>
                        <html:option value="N">No</html:option>
                        </html:select></td>
            </tr>
            <tr>
                <td align="right">Cert. de estudios:</td>
                <td><html:select property="cert" styleId="cert" name="studentForm">                        
                        <html:option value="Y">Si</html:option>
                        <html:option value="N">No</html:option>
                        </html:select>
                </td>
                <logic:equal property="action" name="studentForm" value="m">
                    <td align="right">Estado:</td>
                    <td><html:select property="state" styleId="state" name="studentForm">
                        <html:option value="A">Alta</html:option>
                        <html:option value="B">Baja</html:option>
                        </html:select></td>
                </logic:equal>
            </tr>
        </logic:notEqual>
        </table>
      </form>
</logic:present>
